package com.example.springboot.service;

import com.example.springboot.pojo.Announcement;
import com.github.pagehelper.PageInfo;
import java.util.List;


public interface AnnouncementService {
    void create(Announcement announcement);
    void delete(Integer id);
    void update(Announcement announcement);
    List<Announcement> findAll();
    List<Announcement> findByTitle(String title);
    PageInfo<Announcement> selectPage(Integer pageNum, Integer pageSize);

    void deleteBatch(List<Integer> ids);

    Announcement findById(Integer id);
}
